﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Threading;

namespace XSHTToPdf
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            bool ret;
            Mutex mutex = new Mutex(true, Application.ProductName, out   ret);
            if (ret)
            {
                if (DateTime.Now > Convert.ToDateTime("2025-12-31"))
                {
                    MessageBox.Show("加载LoadResourceDll时出错\n找不到指定的模块。", "RUNDLL", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                else
                {
                    Application.Run(new Main(args));
                }
            }
            else
            {
                MessageBox.Show("该程序已经启动", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
    }
}
